<?php
class SF_Ordertrackinginfo_Block_Trackinginfo extends Mage_Core_Block_Template{

	protected function _toHtml()
	{
		$this->setTemplate('ordertrackinginfo/ordertrackinginfo.phtml');
		return parent::_toHtml();
	}
	
	public function getTrackingInfo(){
		$currentUrl = Mage::helper('core/url')->getCurrentUrl(); 
		$orderid = substr($currentUrl, strrpos($currentUrl,'/')+1);
		
		return $this->helper('ordertrackinginfo')->getTrackingInfo($orderid);

	}

}